package com.mxt.moviedemo.dao;

import com.mxt.moviedemo.entity.Movies;
import com.mxt.moviedemo.entity.Ticket;
import org.apache.ibatis.annotations.*;
import org.springframework.data.domain.PageRequest;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface TicketMapper {
    List<Ticket> getTicketByPage(PageRequest pageRequest);

    int getTotalTicket();

    List<Ticket> searchTicketByKeyword(PageRequest pageRequest, String keyword);
    int getTotalTicketByKeyword(String keyword);

    Ticket getTicketById(int tid);
}
